package com.geeguo.ebuilder.operation.business.tenant.tenantinfo.model;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import com.geeguo.ebuilder.core.common.model.converter.DateLongMapper;

@Mapper(uses = DateLongMapper.class)
public interface TenantInfoConverter {
    
    TenantInfoConverter INSTANCE = Mappers.getMapper(TenantInfoConverter.class);
    
    TenantInfoCO convert2CO(TenantInfoEntity entity);
    
    TenantInfoVO convert2VO(TenantInfoCO co);
    TenantInfoVO convert2VO(TenantInfoEntity entity);
    
    TenantInfoEntity convert2Entity(TenantInfoVO vo);
    TenantInfoEntity convert2Entity(TenantInfoCreateDTO dto);
    TenantInfoEntity convert2Entity(TenantInfoUpdateDTO dto);
}

